import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var Newobject1C6qpComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(Newobject1C6qpComponentViewmodelForm, _super);
    function Newobject1C6qpComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'code',
            name: "{{code_dd1a198a_reer}}",
            binding: 'code',
            updateOn: 'blur',
            defaultI18nValue: '行程编号',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject1C6qpComponentViewmodelForm.prototype, "code", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'note',
            name: "{{note_2150900e_1h8o}}",
            binding: 'note',
            updateOn: 'blur',
            defaultI18nValue: '行程相关备注',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject1C6qpComponentViewmodelForm.prototype, "note", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'creator',
            name: "{{creator_b7a0267a_c6hp}}",
            binding: 'creator',
            updateOn: 'blur',
            defaultI18nValue: '创建人',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject1C6qpComponentViewmodelForm.prototype, "creator", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'createdDate',
            name: "{{createdDate_cd78225f_mo1x}}",
            binding: 'createdDate',
            updateOn: 'blur',
            defaultI18nValue: '创建时间',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject1C6qpComponentViewmodelForm.prototype, "createdDate", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'kssj',
            name: "{{kssj_35b64be0_eq84}}",
            binding: 'kssj',
            updateOn: 'blur',
            defaultI18nValue: '开始时间',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject1C6qpComponentViewmodelForm.prototype, "kssj", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'endingdate',
            name: "{{endingdate_99557baa_718g}}",
            binding: 'endingdate',
            updateOn: 'blur',
            defaultI18nValue: '结束时间',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject1C6qpComponentViewmodelForm.prototype, "endingdate", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'cxfs',
            name: "{{cxfs_05f75f11_je1i}}",
            binding: 'cxfs',
            updateOn: 'blur',
            defaultI18nValue: '出行方式',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject1C6qpComponentViewmodelForm.prototype, "cxfs", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'cxje',
            name: "{{cxje_c211f483_m1ua}}",
            binding: 'cxje',
            updateOn: 'blur',
            defaultI18nValue: '出行金额',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject1C6qpComponentViewmodelForm.prototype, "cxje", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'sfybt',
            name: "{{sfybt_3a7d501f_0tuy}}",
            binding: 'sfybt',
            updateOn: 'blur',
            defaultI18nValue: '是否有补贴',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject1C6qpComponentViewmodelForm.prototype, "sfybt", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'btbz',
            name: "{{btbz_c90d1fb5_63d2}}",
            binding: 'btbz',
            updateOn: 'blur',
            defaultI18nValue: '补贴标准',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject1C6qpComponentViewmodelForm.prototype, "btbz", void 0);
    Newobject1C6qpComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '行程明细',
            enableValidate: true
        }),
        Injectable()
    ], Newobject1C6qpComponentViewmodelForm);
    return Newobject1C6qpComponentViewmodelForm;
}(Form));
export { Newobject1C6qpComponentViewmodelForm };
